/*
  *
  * @ProjectName:    my_umi_app
  * @Package:
  * @ClassName:      menu
  * @Description:    有关Menu的一些定义
  * @Author:         SuPeiSen
  * @CreateDate:     2020/12/24 3:04 下午
  * @UpdateDate:     2020/12/24 3:04 下午
  * @UpdateRemark:   更新说明：
  * @Version:        1.0
 */

// 获取栏目
export interface MenuItemModel {
  id: number;
  parent_id: number;
  menu_name: string;
  menu_path: string;
  icon?: string;
  children?: Array<MenuItemModel>;
}

// 获取栏目列表
export interface MenuListModel {
  total: number,
  per_page: number,
  current_page: number,
  last_page: number,
  lists: Array<MenuItemModel>
}

// 栏目Item
export interface MenuItemModel {
  id: number,
  parent_id: number,
  menu_name: string,
  menu_path: string,
  icon?: string,
  status: number,
}

// TreeSelect
export interface TreeNodeConfig {
  value: string;
  title: string;
  id: number;
  children?: Array<TreeNodeConfig>;
}
